package vip.afeng.rpgclient.util;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @datetime: 2020/7/20 20:48
 * @project_name: afeng-rpg
 * @author: afeng
 */
public class ThreadPool {

    private static int coreN = Runtime.getRuntime().availableProcessors();
    public static ThreadPoolExecutor threadPoolExecutor;
    static {
        threadPoolExecutor = new ThreadPoolExecutor(coreN, coreN, 60, TimeUnit.MICROSECONDS, new LinkedBlockingDeque<>());
    }
}
